@use "sass:math";

.modal {
  position: absolute;
  top: #{math.div(60, $base-font-size)}rem;
  right: 50%;
  transform: translate(50%, 0);
  z-index: 100;
  outline: none;
}

.modal-content {
  @extend %modal;
  min-height: #{math.div(150, $base-font-size)}rem;
  padding: #{math.div(20, $base-font-size)}rem;

  @media (min-width: 770px) {
    width: #{math.div(500, $base-font-size)}rem;
  }

  .modal--reduced & {
    //min-height: #{150 / $base-font-size}rem;
  }
}

.modal-content-folder {
  @extend .modal-content;
  height: #{math.div(150, $base-font-size)}rem;
}

.modal__exit-button {
  @include icon();
}

.modal__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: #{math.div(20, $base-font-size)}rem;
}

.new-folder-form__input-wrapper, .new-file-form__input-wrapper {
  display: flex;
}

.new-file-form__name-label, .new-folder-form__name-label {
  @extend %hidden-element;
}

.new-file-form__name-input, .new-folder-form__name-input {
  margin-right: #{math.div(10, $base-font-size)}rem;
  flex: 1;
}

.modal__divider {
  text-align: center;
  margin: #{math.div(20, $base-font-size)}rem 0;
}
